package spring.j2024_11_19_2.model;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component               // 获取到对象后, 把对象交给Spring管理
@ConfigurationProperties(prefix = "student")   // 读取前缀为 student的对象
@Data
public class Student {
    private int id ;
    private String name ;
}
